<ui:composition template="template/template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"  
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:t="http://myfaces.apache.org/tomahawk"
                xmlns:rich="http://richfaces.org/rich" >

    <ui:define name="conteudo">

        <h:form>

            <fieldset id="formCadastro">
                <legend> <h:outputText value=" Cadastro de Investidor " styleClass="tituloPagina" /></legend>
                
                <t:saveState id="state1" value="#{investidoresMB.pessoa}"/>
                
                <ul>
                    <li > <label for="nomePessoa">Nome</label>
                        <h:inputText id="nomePessoa" value="#{investidoresMB.pessoa.nome}" label="Nome" styleClass="tamanhoNomePessoa" required="true" requiredMessage=" *#{msg['campo_obrigatorio']}" />
                        <h:message for="nomePessoa" styleClass="textoAviso" />
                    </li>
                    <li > 
                        <label for="dataPessoa">Data de Cadastro</label>
                        <rich:calendar id="dataPessoa" value="#{investidoresMB.pessoa.dataCadastro}"   datePattern="dd/MM/yyyy"  required="true" requiredMessage=" *#{msg['campo_obrigatorio']}" /> 
                        <h:message for="dataPessoa" styleClass="textoAviso"  />
                    </li>
                    <li class="linhaBotao" >
                    <h:commandButton value="Salvar"  action="#{investidoresMB.salvar}" styleClass="botaoPadrao"/>
                    <h:commandButton value="Voltar" action="#{investidoresMB.voltar}" styleClass="botaoPadrao" immediate="true" />
                    
                    </li>

                </ul>

            </fieldset>

        </h:form>

    </ui:define>
</ui:composition>